<template>
  <div class="examInformationBox">
    <div class="examInformationBox-title">
      济南市第二次听说模拟考试
    </div>
    <div class="examInformationBox-index">
      成绩共计时间: <span>  </span> 2019.04.06 15:20
    </div>
    <div class="examInformationBox-opt">
      <div class="examInformationBox-opt-item" @click="handleChangeItem(1)" :class="{'active': active === 1}">
        <span class="iconfont icon-xiaoxi" ></span> 通知家长 <span> (待通知)</span>
      </div>
      <div class="examInformationBox-opt-item " @click="handleChangeItem(2)" :class="{'active': active === 2}">
        <i class="iconfont icon-tishi"></i> 匹配学生名单
      </div>
    </div>
    <div class="examInformationBox-tip" v-if="active === 2">
      <div class="examInformationBox-tip-back">
      </div>
      <span class="examInformationBox-tip-text">
          当前成绩单是基于线下导入的学生名单统计展示,可能会存在和线上学生名单不一致,如果要给假账放松成绩单,需要先匹配线上线下学生名单、匹配厚的成绩单
          将基于线上学生名单统计展示
      </span>
      <div class="examInformationBox-tip-query">
        <span class="query-round"></span> 不再显示
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'examInformationBox',
    data () {
      return {
        active: 1
      }
    },
    methods: {
      handleChangeItem (index) {
        this.active = index
      }
    }
  }
</script>

<style scoped>
  .examInformationBox {
    padding: 38rpx 40rpx 0 40rpx;
    background: linear-gradient(135deg, rgba(51, 170, 255, 1) 0%, rgba(51, 187, 255, 1) 100%);
    position: relative;
    z-index: 99;
  }

  .examInformationBox-title {
    height: 60rpx;
    line-height: 60rpx;
    font-size: 40rpx;
    letter-spacing: 2rpx;
    color: #fff;
    font-weight: 600;
  }

  .examInformationBox-index {
    line-height: 80rpx;
    height: 80rpx;
    font-size: 24rpx;
    color: #fff;
    padding-bottom: 20rpx;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  }

  .examInformationBox-tip-text {
    color: #fff;
    font-size: 28rpx;
  }

  .examInformationBox-opt {
    height: 90rpx;
    line-height: 90rpx;
    width: 100%;
    display: flex;
    align-items: center;
  }

  .examInformationBox-opt-item {
    flex: 1;
    height: 60rpx;
    display: flex;
    align-items: center;
    color: rgba(153, 216, 255, 1);
    letter-spacing: 2rpx;
    position: relative;
    justify-content: center;
  }

  .examInformationBox-opt-item::after {
    content: " ";
    height: 40rpx;
    width: 1rpx;
    line-height: 40rpx;
    background: rgba(153, 216, 255, 1);
    position: absolute;
    right: -8rpx;
    top: 14rpx;
  }

  .examInformationBox-opt-item:last-child::after {
    content: " ";
    height: 40rpx;
    width: 1rpx;
    line-height: 40rpx;
    background: transparent;
    position: absolute;
    right: -8rpx;
    top: 14rpx;
  }

  .icon-xiaoxi {
    font-size: 44rpx;
    position: relative;
    top: 4rpx;
  }

  .active {
    color: #fff;
  }

  .active.icon-tishi {
    color: rgba(255, 84, 51, 1);
  }

  .icon-tishi {
    padding-right: 10rpx;
    position: relative;
    top: 4rpx;
  }

  .examInformationBox-tip {
    width: 670rpx;
    height: auto;
    position: absolute;
    z-index: 999;
    top: 310rpx;
    left: 25rpx;
    overflow: hidden;
    border-radius: 10rpx;
    padding: 22rpx 22rpx 0 22rpx;
  }

  .examInformationBox-tip-back {
    width: 100%;
    height: 100%;
    z-index: -1;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: rgba(24, 25, 26, 0.6);
  }

  .examInformationBox-tip-query {
    display: block;
    width: 100%;
    height: 60rpx;
    line-height: 60rpx;
    text-align: right;
    font-size: 24rpx;
    color: rgba(255, 255, 255, 1);
  }

  .query-round {
    width: 10px;
    height: 10px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 50%;
    top: 2px;
    position: relative;
  }
</style>
